const getScoreModel = require("../models/getScore_model")
const Result = require("../beans/result")

function getScorelist(value,msg,callback) {
    
    getScoreModel.getScore(value, (err, data) => {
        if (err) {
            callback(new Result(err, data, msg[0], 401))
        } else {
            callback(new Result(null, data, msg[1], 200))
        }
    })
}

module.exports = {
    getScorelist,
}